package com.wanxi.version3;

public class Version3Test {
    public static void main(String[] args) {
        Gamer gamer1 = new Gamer("王海云");
        Gamer gamer2 = new Gamer("江姐");
        Gamer gamer3 = new Gamer("爱好");

        NPC npc1 = new NPC("陈明");

        System.out.println(gamer1);
        System.out.println(gamer2);
        System.out.println(npc1);

        long start=System.currentTimeMillis();//系统时间
        System.out.println(start);

        gamer1.magicAttack(npc1);
        gamer1.magicAttack(npc1);
        gamer1.magicAttack(npc1);
        gamer1.magicAttack(npc1);
        gamer1.magicAttack(npc1);

        gamer1.magicAttack(npc1);

        gamer2.magicAttack(gamer1);


        for (int i = 0; i < 11; i++) {
            gamer1.magicAttack(gamer2);
        }

        for (int i = 0; i < 5; i++) {
            gamer1.magicAttack(gamer3);
        }

        gamer1.magicAttack(gamer3);



        System.out.println(gamer1);
        System.out.println(gamer2);
        System.out.println(npc1);

//        Gamer gamer3 = new Gamer("头号杀手");
//        NPC npc2 = new NPC("杀头号");
//        NPC npc3= new NPC("杀手");
//
//
//
//        System.out.println(gamer3);
//        System.out.println(npc2);
//        System.out.println(npc3);
//
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//        npc2.physicalAttack(gamer3);
//
//        npc3.magicAttack(gamer3);
//
//        npc2.magicAttack(npc3);
//        npc2.physicalAttack(npc3);
//
//
//
//        System.out.println(gamer3);
//        System.out.println(npc2);
//        System.out.println(npc3);


    }
}
